package cn.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.dao.SysuserMapper;
import cn.domain.Sysuser;
import cn.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	@Autowired
	private SysuserMapper  sysuserMapper;


	public int deleteByPrimaryKey(String userid) {
		return sysuserMapper.deleteByPrimaryKey(userid);
	}

	public int insert(Sysuser record) {
		return sysuserMapper.insert(record);
	}

	public int insertSelective(Sysuser record) {
		return sysuserMapper.insertSelective(record);
	}

	public Sysuser selectByPrimaryKey(String userid) {
		return sysuserMapper.selectByPrimaryKey(userid);
	}






	public int updateByPrimaryKeySelective(Sysuser record) {
		return sysuserMapper.updateByPrimaryKeySelective(record);
	}


	public int updateByPrimaryKey(Sysuser record) {
		return sysuserMapper.updateByPrimaryKey(record);
	}

}
